from django.db import models

# Create your models here.
# 添加页的模型类
class BlogModel(models.Model):
    title = models.CharField(max_length=50,blank=True)  # 标题 表单标签，默认不允许为空，True，允许为空
    content = models.TextField()  # 文章内容 文本类型

    def __str__(self):
        return f'title={self.title},content={self.content}'